package org.springperu.aop.demo.aop;

import org.springframework.beans.factory.annotation.Autowired;
import org.springperu.aop.demo.service.AuditService;



public class AuditAspect {
	
	@Autowired
	private AuditService auditService;
	
	public AuditAspect() {
		System.out.println("");
	}
	
	public void grabarAuditoriaGrabados(Object entity) throws Throwable {
		auditService.saveAudit(entity);
	}
}